package com.ruoyi.web.sso.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * APP版本对象 app_edition
 * 
 * @author ruoyi
 * @date 2023-04-13
 */
@Data
public class AppEdition extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Integer id;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date created;

    /** 是否删除 0：否，1是 */
    @Excel(name = "是否删除 0：否，1是")
    private Integer deleted;

    /** appId */
    @Excel(name = "appId")
    private String appId;

    /** 版本号值 */
    @Excel(name = "版本号值")
    private Integer code;

    /** 内容 */
    @Excel(name = "内容")
    private String content;

    /** 版本号 */
    @Excel(name = "版本号")
    private String editionCode;

    /** 1不发行，2发行 */
    @Excel(name = "1不发行，2发行")
    private Long issue;

    /** 应用名称 */
    @Excel(name = "应用名称")
    private String name;

    /** 1不强制，2强制更新 */
    @Excel(name = "1不强制，2强制更新")
    private String renew;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 1安卓2苹果 */
    @Excel(name = "1安卓2苹果")
    private Long type;

    /** 下载地址 */
    @Excel(name = "下载地址")
    private String url;

    @Excel(name = "包类型")
    private String wrapType;

    @ApiModelProperty(value="应用地址" )
    private String storeUrl;

    public void setId(Integer id)
    {
        this.id = id;
    }

    public Integer getId()
    {
        return id;
    }
    public void setCreated(Date created) 
    {
        this.created = created;
    }

    public Date getCreated() 
    {
        return created;
    }
    public void setDeleted(Integer deleted) 
    {
        this.deleted = deleted;
    }

    public Integer getDeleted() 
    {
        return deleted;
    }
    public void setAppId(String appId) 
    {
        this.appId = appId;
    }

    public String getAppId() 
    {
        return appId;
    }
    public void setCode(Integer code)
    {
        this.code = code;
    }

    public Integer getCode()
    {
        return code;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setEditionCode(String editionCode) 
    {
        this.editionCode = editionCode;
    }

    public String getEditionCode() 
    {
        return editionCode;
    }
    public void setIssue(Long issue) 
    {
        this.issue = issue;
    }

    public Long getIssue() 
    {
        return issue;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setRenew(String renew)
    {
        this.renew = renew;
    }

    public String getRenew()
    {
        return renew;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setType(Long type) 
    {
        this.type = type;
    }

    public Long getType() 
    {
        return type;
    }
    public void setUrl(String url) 
    {
        this.url = url;
    }

    public String getUrl() 
    {
        return url;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("created", getCreated())
            .append("deleted", getDeleted())
            .append("appId", getAppId())
            .append("code", getCode())
            .append("content", getContent())
            .append("editionCode", getEditionCode())
            .append("issue", getIssue())
            .append("name", getName())
            .append("renew", getRenew())
            .append("title", getTitle())
            .append("type", getType())
            .append("url", getUrl())
            .toString();
    }
}
